package cafe.ejb;

import java.sql.SQLException;
import java.util.List;
import java.util.Set;

import javax.ejb.Local;

import cafe.ejb.myexceptions.EntityNotFoundException;
import cafe.jpa.Order;
import cafe.jpa.Waiter;


@Local
public interface OrderService {
	Order getOrderByID(long orderID) throws EntityNotFoundException, SQLException;
	
	List<Order> getAllOrders() throws SQLException, EntityNotFoundException;	
	
	void addOrder(Order order) throws  SQLException;
	
	void update(Order order);
	
	void removeByID(long ID) throws SQLException; 
	
	Set<Waiter> getOrdersWaiters(long orderID) throws EntityNotFoundException, SQLException;
	
}
